package com.sdgakj.utils.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
@Service
@Lazy(false)
public class TruckPutoffTask {
	
	private static Logger logger = LoggerFactory.getLogger(TruckPutoffTask.class);

//    @Scheduled(cron = "0 10 0 * * ?")
//    public void execute() {
////        logger.info("automatic truck put off {}",DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
//        //更新90天前已发布或者已售的车辆为已下架
////        truckService.automicPutoff();
//
////        logger.info("automatic truck put off {}",DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
//        logger.info("automatic put off by sale {}",DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
////        truckService.putoffTruckFromSale();
//        logger.info("automatic put off by sale {}",DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
//
//    }
}
